package com.three.crm.bean;

import android.os.Parcel;
import android.os.Parcelable;

public class CosTokenBean implements Parcelable {

    private String secretId;
    private String secretKey;
    private String token;
    private long startTime;
    private long expirationAt;

    private String bucket;
    private String region;
    private String endpoint;
    private String Expiration;
    private String AccessKeySecret;
    private String AccessKeyId;
    private String SecurityToken;

    public CosTokenBean() {
    }

    public CosTokenBean(String secretId, String secretKey, String token, long startTime, long expirationAt, String bucket, String region, String endpoint, String expiration, String accessKeySecret, String accessKeyId, String securityToken) {
        this.secretId = secretId;
        this.secretKey = secretKey;
        this.token = token;
        this.startTime = startTime;
        this.expirationAt = expirationAt;
        this.bucket = bucket;
        this.region = region;
        this.endpoint = endpoint;
        Expiration = expiration;
        AccessKeySecret = accessKeySecret;
        AccessKeyId = accessKeyId;
        SecurityToken = securityToken;
    }

    protected CosTokenBean(Parcel in) {
        secretId = in.readString();
        secretKey = in.readString();
        token = in.readString();
        startTime = in.readLong();
        expirationAt = in.readLong();
        bucket = in.readString();
        region = in.readString();
        endpoint = in.readString();
        Expiration = in.readString();
        AccessKeySecret = in.readString();
        AccessKeyId = in.readString();
        SecurityToken = in.readString();
    }

    public static final Creator<CosTokenBean> CREATOR = new Creator<CosTokenBean>() {
        @Override
        public CosTokenBean createFromParcel(Parcel in) {
            return new CosTokenBean(in);
        }

        @Override
        public CosTokenBean[] newArray(int size) {
            return new CosTokenBean[size];
        }
    };

    public String getSecretId() {
        return secretId;
    }

    public void setSecretId(String secretId) {
        this.secretId = secretId;
    }

    public String getSecretKey() {
        return secretKey;
    }

    public void setSecretKey(String secretKey) {
        this.secretKey = secretKey;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public long getStartTime() {
        return startTime;
    }

    public void setStartTime(long startTime) {
        this.startTime = startTime;
    }

    public long getExpirationAt() {
        return expirationAt;
    }

    public void setExpirationAt(long expirationAt) {
        this.expirationAt = expirationAt;
    }

    public String getBucket() {
        return bucket;
    }

    public void setBucket(String bucket) {
        this.bucket = bucket;
    }

    public String getRegion() {
        return region;
    }

    public void setRegion(String region) {
        this.region = region;
    }

    public String getEndpoint() {
        return endpoint;
    }

    public void setEndpoint(String endpoint) {
        this.endpoint = endpoint;
    }

    public String getExpiration() {
        return Expiration;
    }

    public void setExpiration(String expiration) {
        Expiration = expiration;
    }

    public String getAccessKeySecret() {
        return AccessKeySecret;
    }

    public void setAccessKeySecret(String accessKeySecret) {
        AccessKeySecret = accessKeySecret;
    }

    public String getAccessKeyId() {
        return AccessKeyId;
    }

    public void setAccessKeyId(String accessKeyId) {
        AccessKeyId = accessKeyId;
    }

    public String getSecurityToken() {
        return SecurityToken;
    }

    public void setSecurityToken(String securityToken) {
        SecurityToken = securityToken;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(secretId);
        dest.writeString(secretKey);
        dest.writeString(token);
        dest.writeLong(startTime);
        dest.writeLong(expirationAt);
        dest.writeString(bucket);
        dest.writeString(region);
        dest.writeString(endpoint);
        dest.writeString(Expiration);
        dest.writeString(AccessKeySecret);
        dest.writeString(AccessKeyId);
        dest.writeString(SecurityToken);
    }
}
